<?php
(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) && exit('Access Denied');
loadcache('plugin');
require_once (DISCUZ_ROOT.'./source/plugin/touclick/func/touclick_request.func.php');
require_once (DISCUZ_ROOT.'./source/plugin/touclick/func/touclick_tools.func.php');
require_once (DISCUZ_ROOT.'./source/plugin/touclick/include/JSON.php');

$tcJSON = new CJSON();

if(file_exists(DISCUZ_ROOT.'./data/plugindata/touclick.lang.php')){
	include DISCUZ_ROOT.'./data/plugindata/touclick.lang.php';
} else {
	loadcache('pluginlanguage_script');
}
$scriptlang['touclick'] = $_G['cache']['pluginlanguage_script']['touclick'];
$touclicklang = $scriptlang['touclick'];

$touclickB = trim($_G['cache']['plugin']['touclick']['sitekey']);
$touclickZ = trim($_G['cache']['plugin']['touclick']['identity']);
$touclickV = "v2-1-2";
$touclickPF = "discuz";
$touclickD =urlencode($_G['siteurl']);
$touclickCS = $_G['config']['output']['charset'];

$identifier = $_GET['identifier'];
$urls = '&pmod=control&identifier='.$identifier.'&operation='.$operation.'&do='.$do;

if($touclickB == "" || $touclickZ == "" ){
	cpmsg($touclicklang['tcmsg0020'], "", 'error');
}
if($touclickB == $touclickZ || strlen($touclickB) != 36 || strlen($touclickZ) != 36){
	cpmsg($touclicklang['tcmsg0021'], "", 'error');
}
$isloc =( strpos($touclickD, 'localhost') === false ) &&  ( strpos($touclickD, '127.0.0.1') === false );
if(!$isloc){
	cpmsg("{$touclicklang['tcmsg0023']}", "", 'error');
}
echo <<<EOF

<div id = "tipbar" style="display:none;">
<!--[if lt IE 7]>
  <div style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;'>
    <div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='Close this notice'/></a></div>
    <div style='width: 840px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>
      <div style='width: 75px; float: left;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'/></div>
      <div style='width: 475px; float: left; font-family: Arial, sans-serif;'>
        <div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>&#20320;&#30340;&#27983;&#35272;&#22120;&#26159;&#73;&#69;&#54;&#25110;&#32773;&#73;&#69;&#55;&#20869;&#26680;&#30340;&#27983;&#35272;&#22120;&#65288;&#22914;&#51;&#54;&#48;&#27983;&#35272;&#22120;&#12289;&#25628;&#29399;&#27983;&#35272;&#22120;&#31561;&#65289;</div>
        <div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>&#35813;&#21151;&#33021;&#26242;&#19981;&#23545;&#20302;&#29256;&#26412;&#27983;&#35272;&#22120;&#20570;&#20860;&#23481;&#65292;&#24378;&#28872;&#24314;&#35758;&#20351;&#29992;&#32;<a href='http://www.google.com/chrome' target='_blank'>&#35895;&#27468;&#27983;&#35272;&#22120;</a>&#32;&#25110;&#32773;&#32;<a href='http://www.firefox.com' target='_blank'>&#28779;&#29392;&#27983;&#35272;&#22120</a>.</div>
      </div>
      <div style='width: 75px; float: left;'><a href='http://www.firefox.com' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox 3.5'/></a></div>
      <div style='width: 75px; float: left;'><a href='http://www.google.com/chrome' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/></a></div>
      <div style='width: 73px; float: left;'><a href='http://www.apple.com/safari/download/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari 4'/></a></div>
    </div>
  </div>
  <![endif]-->
		</div>
<div id="mainbar">
EOF;

require (DISCUZ_ROOT.'./source/plugin/touclick/include/touclick_itemadd.inc.php');

?>

<script type="text/JavaScript">
var useragent = navigator.userAgent.toLocaleLowerCase();
var ieagent;
if (window.ActiveXObject) ieagent = useragent.match(/msie ([\d.]+)/)[1];
if (ieagent == "6.0") {
	document.getElementById("tipbar").style.display="block";
	document.getElementById("mainbar").style.display="none";
}
</script>